Skip to content

Comments

Add TANF takeup assignment to CPS data pipeline#545

Merged
MaxGhenis merged 1 commit intomainfrom
add-tanf-takeup-to-cps
Feb 19, 2026
Merged

Add TANF takeup assignment to CPS data pipeline#545
MaxGhenis merged 1 commit intomainfrom
add-tanf-takeup-to-cps

Conversation

@MaxGhenis
Copy link
Contributor

Summary

  • The TANF takeup rate parameter and SIMPLE_TAKEUP_VARS entry were added in PR Add TANF takeup rate (22%) to calibration pipeline #542, but add_takeup() in cps.py wasn't updated
  • Without this, takes_up_tanf_if_eligible defaults to True (100%) in the dataset — the calibration reweighting alone brought TANF to $7.0B, but with wrong takeup semantics
  • This adds the 5-line TANF block to add_takeup() matching the pattern used by SNAP, SSI, etc.

Test plan

  • load_take_up_rate('tanf', 2024) returns 0.22
  • Random assignment produces ~22% True rate
  • Full data build produces reasonable TANF totals

🤖 Generated with Claude Code

The TANF takeup rate was added to SIMPLE_TAKEUP_VARS (for calibration)
but not to add_takeup() in cps.py (for data persistence). This meant
takes_up_tanf_if_eligible defaulted to True (100%) in the dataset.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@MaxGhenis MaxGhenis merged commit d007982 into main Feb 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant